-- GENERATED SPELL FOR [Sunfury Eradicator] --


function spell0_21742(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17137,pUnit)
pUnit:RegisterEvent('Sorts_21742', 1500, 1)
end

function spell1_21742(pUnit, Event) --@Seal of Blood,Self--
pUnit:FullCastSpellOnTarget(38008,pUnit)
pUnit:RegisterEvent('Sorts_21742', 30283, 1)
end

function Sorts_21742(pUnit, Event)
local choix_sorts_21742 = math.random(0, 1)
if choix_sorts_21742 == 0 then
pUnit:RegisterEvent('spell0_21742', 1, 1)
end
if choix_sorts_21742 == 1 then
pUnit:RegisterEvent('spell1_21742', 1, 1)
end
end

function mob21742_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21742', math.random(1500, 3000), 1)
end

function mob21742_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21742_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21742_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21742, 1, 'mob21742_Action')
RegisterUnitEvent(21742, 2, 'mob21742_Leave')
RegisterUnitEvent(21742, 3, 'mob21742_Kill')
RegisterUnitEvent(21742, 4, 'mob21742_Die')
